﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:maps="clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps"
    xmlns:Location="clr-namespace:System.Device.Location;assembly=System.Device"
    x:Class="Mapping_Demo.ReverseGeoCode"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">  

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>     

        <!--TitlePanel contains the name of the application and page title-->
        

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0,0,0">

            <ProgressBar x:Name="RevGeoCordBar" VerticalAlignment="Top" IsIndeterminate="True" Height="10" Visibility="Collapsed"/>

            <maps:Map x:Name="reverseGeoCodeMap" Tap="Map_Tap_1" ZoomLevel="3">
            	<maps:Map.Center>
            		<Location:GeoCoordinate 
							Altitude="NaN" 
							Course="NaN" 
							HorizontalAccuracy="NaN" 
							Longitude="-87.63382" Latitude="41.893972" 
							Speed="NaN" 
							VerticalAccuracy="NaN"/>
            	</maps:Map.Center>
            </maps:Map>
			<StackPanel Grid.Row="1" Margin="0" Background="{StaticResource PhoneAccentBrush}" VerticalAlignment="Top" >
            <TextBlock x:Name="revGeoCordText" Text="tap the map to get an address" Margin="24,12,12,12" Style="{StaticResource JumpListStringStyle}"/>
        </StackPanel>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>